/*!
\copyright  Copyright (c) 2024 Qualcomm Technologies International, Ltd.
            All Rights Reserved.
            Qualcomm Technologies International, Ltd. Confidential and Proprietary.
\file
\brief      Setup for sensors using the sensor subsystem

*/

#ifndef HEADSET_SENSOR_H_
#define HEADSET_SENSOR_H_


/*@{*/

/*! \brief Load the predefined image to the sensor subsystem and start it
    \param init_task Task to send message to on success. Message is 
        SENSOR_SUBSYSTEM_STARTED_IND

    The sensor subsystem image defined by appConfigSensorSsImageName() in
    headset_config.h is loaded, and the sensor subsystem started.

    The message #SENSOR_SUBSYSTEM_STARTED_IND is sent once the
    sensor subsystem has started and available for communication.

    \return TRUE on success, FALSE otherwise.
*/
bool HeadsetSensorLoadImage(Task init_task);

/*! \brief Set up to use the sensor subsystem
    \param init_task UNUSED

    The sensor subsystem is accessed using Remote Procedure Calls (ERPC).
    This function performs the necessary setup so that RPC can be
    used by the application.

    \return TRUE on success, FALSE otherwise.
*/
bool HeadsetSensorConfigureSensor(Task init_task);

/*@}*/

#endif /* HEADSET_SENSOR_H_ */
